package com.newsnetwork.pojo.bo;

import javax.validation.constraints.NotBlank;

/**
 * @author: HuangDekai
 * @date: 2022/11/4 15:38
 * @version: 1.0
 * @since: jdk8
 * @description: 用户注册用到的 Entry 对象
 */
public class RegistLoginBO {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号码不能为空")
    private String mobile;

    /**
     * 验证码
     */
    @NotBlank(message = "短信验证码不能为空")
    private String smsCode;

    public RegistLoginBO() {
    }

    public RegistLoginBO(String mobile, String smsCode) {
        this.mobile = mobile;
        this.smsCode = smsCode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    @Override
    public String toString() {
        return "RegistLoginBO{" +
                "mobile='" + mobile + '\'' +
                ", smsCode='" + smsCode + '\'' +
                '}';
    }
}
